package com.springWebFlux.Model;

/**
 * @version V1.0  </br>
 * @ClassName ResultViewModel </br>
 * @Description TODO  </br>
 * @Author tonywang</br>
 * @DATE 3/20/2019 3:43 PM</br>
 */
public class ResultViewModel {

    private int code;
    private String message;
    private ResultModel data;
    public final static ResultViewModel EMPTY_RESULT = null;


    public ResultViewModel(int pCode, String pMessage, ResultModel pData) {
        code = pCode;
        message = pMessage;
        data = pData;
    }

    public int getCode() {
        return code;
    }

    public ResultViewModel setCode(int pCode) {
        code = pCode;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public ResultViewModel setMessage(String pMessage) {
        message = pMessage;
        return this;
    }

    public ResultModel getData() {
        return data;
    }

    public ResultViewModel setData(ResultModel pData) {
        data = pData;
        return this;
    }
}